Dynomotion

Group: DynoMotion Message: 9554 From: tmday7 Date: 5/27/2014
Subject: A axis DRO zeros after Reset

Need some C program help. Just got my 4th axis setup and running. But everytime i click the Reset button in Mach3 , my A axis DRO goes to 0.0000. Is this because the init program is making the Command Position DRO match the Encoder DRO?

Right now i dont have the encoder wired into KFLOP so the Encoder DRO for A axis is always 0.0000.

Here is my current C programs.....

https://groups.yahoo.com/neo/groups/DynoMotion/files/KFLOP%20MillDrill/C%20Programs/After%20Interface/


Mach3 CL PMDX-125(Version6.1).c is my latest init code.


Thanks for any help,

Troy

 

Group: DynoMotion Message: 9555 From: Tom Kerekes Date: 5/27/2014
Subject: Re: A axis DRO zeros after Reset
Hi Troy,

In that case I believe if you change:

EnableAxisDest(3,ch3->Position);

to

EnableAxisDest(3,ch3->Dest);


A Reset and re-enable should keep the last commanded Destination rather than setting to the Measured Position.

HTH
Regards
TK


Group: DynoMotion Message: 9558 From: tmday7 Date: 5/27/2014
Subject: Re: A axis DRO zeros after Reset
Hi Tom,
 Thats something, i can understand just a little of my the c program, but when you point out what it is a light goes on :)
Thanks again for your support,
Troy